
/**
 * 跨域设置
 * */
module.exports = {
    devServer: {
        host: 'localhost',
        port: 8080,
        proxy: {
            '/api': {
                target: 'http://localhost:3001/', //对应自己的接口
                changeOrigin: true,
                pathRewrite: {
                    '^/api':""
                }
            }
        }
    }
}